﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="ReplysMessage.aspx.cs" Inherits="BestBuy.PageUser.ReplysMessage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <asp:Panel ID="Panel3" runat="server" CssClass="left-side-bar bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
            <li class="active" style="text-align: center;"><a href="Message.aspx">Message</a></li>
            <li><a id="A5" runat="server" href="Message.aspx"><i class="icon-chevron-right"></i>
                Inbox (<asp:Label ID="unread" runat="server" Text="Label"></asp:Label>)</a></li>
            <li><a id="A6" runat="server" href="DeleteMessage.aspx"><i class="icon-chevron-right">
            </i>Delete</a></li>
            <li><a id="A1" runat="server" href="SendItemMessage.aspx"><i class="icon-chevron-right">
            </i>Send Items</a></li>
        </ul>
    </asp:Panel>
     <div class="main-content">
        <table  cellpadding="1" cellspacing="1">
            <tr>
                <td align="right" valign="top">To:</td>
                <td>
                <table cellpadding="1" cellspacing="1">
                <% List<BestBuy.DTO.DTOReplys> loadSender = loadName();
                   foreach (var item in loadSender)
                   { %>
                     <tr>
                        <td><%  Response.Write(item.NameSender);
                                String str = getNameCompany(item.IdSender);
                                %>(Company <% Response.Write(str);%>)                            
                        </td>
                    </tr>
                 <%} %>                    
                </table>
                </td>
            </tr>
            <tr>
                <td align="right" valign="top">Message:</td>
                <td>
                    <asp:TextBox ID="tbReply" runat="server" TextMode="MultiLine" Width="400px" Height="300px"></asp:TextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button ID="btReply" runat="server" Text="Send Message" CssClass="btn" 
                        onclick="btReply_Click" /></td>
            </tr>
        </table>
     </div>
</asp:Content>
